//************************************************
//  *Author：jxx
//  *QQ：283591387
//  *代码由框架生成,任何更改都可能导致被代码生成器覆盖
//  *业务请在q_operations_recycle.js中编写
//************************************************
export default function () {
	return {
		editFormFields: { Operations_recycle: '', Voucher_sub: '', Goods_num: '', WHSE_no: '', Attachment: '', Image: '', Remark: '' },
		editFormOptions: [
			{ title: 'ID', field: 'Operations_recycle',hidden:true },
			{ title: '单据编码', field: 'Voucher_sub', type: 'text', disabled: true },
			{ title: '商品数量',  field: 'Goods_num', type: 'number' ,hidden:true },
			{ key: '一级仓库', data: [], title: '回收机构', required: true, field: 'WHSE_no', type: 'select' },
			{ title: '附件', field: 'Attachment', type: 'file' },
			{ title: '图片', field: 'Image', type: 'img' },
			{ title: '备注', field: 'Remark', type: 'textarea' }
		],
		searchFormFields: { Voucher_sub: '', Goods_num: '', WHSE_no: '', AuditStatus: '' },
		searchFormOptions: [
			{ title: '商品数量', field: 'Goods_num', type: 'number' },
			{ key: 'audit', data: [], title: '审核状态', field: 'AuditStatus', type: 'number' },
			{ type: 'group' },
			{ title: '单据编码', field: 'Voucher_sub', type: 'like' },
			{ key: '一级仓库', data: [], title: '回收机构', field: 'WHSE_no', type: 'select' }
		],
		columns: [
			{ field: 'Voucher_sub', title: '单据编码', type: 'string', link: true },
			{ field: 'Goods_num', title: '商品数量', type: 'float' },
			{ field: 'WHSE_no', title: '回收机构', type: 'string', bind: { key: '一级仓库', data: [] } },
			{ field: 'Attachment', title: '附件', type: 'file' },
			{ field: 'Image', title: '图片', type: 'img' },
			{ field: 'AuditStatus', title: '审核状态', type: 'int', bind: { key: 'audit', data: [] } },
			{ field: 'Remark', title: '备注', type: 'string' }
		],
		table: {
			key: 'Operations_recycle',
			footer: 'Foots',
			cnName: '运维回收单',
			name: 'q_operations_recycle',
			url: '/q_operations_recycle/',
			sortName: 'Goods_sub'
		}
	};
}
